********************************************************************************
*** Instructions for replication of analyses presented in 
*** Milner, Helen V and Sondre Ulvund Solstad. 2021. Technological Change and the International System
*** 
*** World Politics
********************************************************************************
****************************************
*** I. Folder setup
****************************************
- Ensure that the all files from the dataverse are downloaded and in one central folder

- Within the directory, make an "output" subdirectory

****************************************
*** II. Install required packages (Stata) (R packages are called in the preamble script)
****************************************
xtabond2 - net install st0159_1.pkg

weakivtest - ssc install weakivtest

twostepweakiv - ssc install twostepweakiv 

ivreg2 - ssc install ivreg2

actest - net install st0030_3.pkg

moremata - ssc install moremata

renvars - net install dm88_1.pkg

xtpmg - net install st0125.pkg


****************************************
*** III. .do files for analysis (setup folder)
****************************************
- Analysis Final.do reproduces all tables in the maintext and appendix, delineated within the .do file

- Figure 1.R reproduces Figure 1. Trends in (Delta Log of) Technology Units per Capita of twenty key technologies from Comin et al. (2013) from 1820 to 2009

- Figure 2.R reproduces Figure 2. System Concentration and Interstate Conflict, 1816-2008

- Figure 3.R reproduces Figure 3. Substantive Effects - The International System and Technology Adoption


*********************************************************
*** IV. Datasets
*********************************************************
The following datasets are used in the above listed .do files 

- Analysis Final.do 
	tech_data.dta 
		Cleaned and subset data file as used in the main analyses

	full_data.dta
		Full data file (not subset to relevant years or observations where adoption level is not missing) for summary stats 

	imputed_clean.dta
		Imputed (Amelia II) full data file, cleaned and set for MI analysis in Stata

- Figure 1.R 
	full_data.dta
		Full data file (as described above), contains delta_c_and_t_plus_y (unexplained yearly increase in number of technology units per
		capita, after controlling for country and technology-specific heterogeneity) 
		

- Figure 2.R 
	tech_data.dta
		As described above

- Figure 3.R 
	tech_data.dta
		As described above
